import Vuex from "vuex";
export default new Vuex.Store({
    state: {
        dayModel:true,
        routerName: '',
        sId: -1,
        tId: -1,
        bId: null
    },
    mutations: {
        setDayModel(state,value) {
            state.dayModel = value
        },
        setRouterName(state,value){
            state.routerName = value
        },
        setSid(state,value){
            state.sId = value;
            state.tId = -1;
        },
        setTid(state,value){
            state.tId = value
            state.sId = -1;
        },
        setBId(state,value){
            state.bId = value;
        }
    }
})